package com.tourex;

import android.app.Activity;
import android.support.v4.app.Fragment;

public class BaseFragment extends Fragment {

	protected BaseActivity holder;
	protected boolean selfVisible;

	@Override
	public void onAttach(Activity activity) {
		super.onAttach(activity);
		holder = (BaseActivity) activity;

	}

	@Override
	public void onDetach() {
		super.onDetach();
		holder = null;
	}

	@Override
	public void onHiddenChanged(boolean hidden) {
		super.onHiddenChanged(hidden);
		selfVisible = !hidden;
	}

}
